﻿using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for Machine.xaml
    /// </summary>

    public partial class TDXJ
    {
        public TDXJ()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VAMSTAMM();
            DataContext = MV;
            InitializeComponent();
        }
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            if (IsLoaded)
                return;
            StartMonitoring();
            TVHeight = MGANTT.TVHeight;
            base.Window_Loaded(sender, e);
        }
        public override void StartMonitoring()
        {
             
            base.StartMonitoring();
        }

        private void WDCommand(object sender, RoutedEventArgs e)
        {           
            
        }
        public override DateTime GETAMREDY(DataRow dwJob)
        {
            dwMachine["WD"] = TMV.WD;
            filter = "LOGIC LIKE 'T%'";
            rows = JJRules.Select(filter);
            foreach (DataRow row in JJRules.Rows)
            {
                row["WD"] =TMV.WD;
            }
            return base.GETAMREDY(dwJob);
        }
    }
}
